package com.zzy.system.domain;

import com.alibaba.fastjson2.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.zzy.common.core.domain.BaseEntity;
import lombok.Data;

import java.math.BigDecimal;

/**
 * 订单实体类，用于表示订单的各种属性信息。
 */
@Data
public class PurchaseRefundOrderDetails extends BaseEntity {
    //主键 自增
    //主键 自增
    @TableId(type = IdType.AUTO)
    private Integer purchaseRefundOrderDetailsId;
    private static final long serialVersionUID = 1L;
    // spu_id
    @JSONField(name = "spu_id")
    private String spuId;

    // 采购规格id
    @JSONField(name = "spec_id")
    private String specId;

    // 采购规格名
    @JSONField(name = "spec_name")
    private String specName;

    // 分类名，格式为 一级分类名/二级分类名
    @JSONField(name = "category_name")
    private String categoryName;

    // 退货数量
    @JSONField(name = "refund_count")
    private BigDecimal refundCount;

    // 退货金额
    @JSONField(name = "refund_amount")
    private BigDecimal refundAmount;

    // 退货单价
    @JSONField(name = "refund_unit_price")
    private BigDecimal refundUnitPrice;

    // 采购规格基本单位
    @JSONField(name = "std_unit_name")
    private String stdUnitName;

    // 采购规格批次 站点进销存模式为先进先出时有意义，无批次信息时为空字符串
    @JSONField(name = "batch_number")
    private String batchNumber;

    // 操作人
    @JSONField(name = "operator")
    private String operator;

    private String supplierRefundSheetId;

}